<%-- 
    Document   : header
    Created on : Apr 9, 2011, 10:27:18 PM
    Author     : Stefan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<style type="text/css">
    .meny_div{
        position: absolute;
        right: 100px;
        top: 20px;
        font-size: 14px;
        text-align: right;
    }
    .meny_link A:link {text-decoration: none;color: #0000CD}
    .meny_link A:visited {text-decoration: none;color: #0000CD}
    .meny_link A:active {text-decoration: none}
    .meny_link A:hover {text-decoration: underline; color: blue;}
</style>

<c:if test="${registeredUserBean.loggedIn}">
    <div class="meny_div">
        <span class="meny_link">
            <h:form>
			<%--
			[ <h:commandLink value="Account Settings" action="accountsettings"/> ]<br/>
			[ <h:commandLink value="Change Password" action="passchange"/> ]<br/>
			--%>
			<br/>
			<br/>

			[ <h:commandLink value="Logout" action="logout"/> ]
            </h:form>
        </span>
    </div>
    <div style ="position: absolute;right: 20px;top: 10px;">
        <img src="/EvIn/static/images/User.png" height="65" width="65" alt="User"/>
    </div>

</c:if>

<div style="position: absolute;left: 5px;top: 5px;">
    <a href="/EvIn/index.faces" title="Home">
        <img src="/EvIn/static/images/Logo.png" height="80" width="130" alt="Logo"/>
    </a>
</div>

<c:if test="${registeredUserBean.loggedIn}">
    <div style="position: absolute;left: 150px;top: 20px;color: #000000">
		<br/>
        <h:outputLabel value="#{registeredUserBean.registeredUser.firstName}"/>
        <h:outputLabel value=" #{registeredUserBean.registeredUser.lastName}"/>
        <br/>
        <h:outputLabel value="#{registeredUserBean.registeredUser.email}"/>
        <%--<h:outputLabel value="Pending Invitations : "/>
        <h:outputLabel value="#{registeredUserBean.pendingInvitationsCount }"/>--%>
    </div>
</c:if>

